@page
@{ Layout = "_LayoutHome"; }
@section Styles{
    <style>
        body,html {
            padding: 0;
            margin: 0;
        }
    </style>
}
<div class="rounded-0 shadow p-3 bg-white sticky-top">
    <div class="fw-bolder text-center">
        题目纠错记录
    </div>
</div>
<div class="py-3 px-5">
    <el-form v-on:submit.native.prevent :inline="true" :model="form">
        <el-form-item label="">
            <el-date-picker v-model="form.dateFrom"
                            type="date"
                            value-format="yyyy-MM-ddTHH:mm:ss.000Z"
                            placeholder="纠错日期 从">
            </el-date-picker>
        </el-form-item>
        <el-form-item label="">
            <el-date-picker v-model="form.dateTo"
                            type="date"
                            value-format="yyyy-MM-ddTHH:mm:ss.000Z"
                            placeholder="到">
            </el-date-picker>
        </el-form-item>
        <el-form-item label="">
            <el-input prefix-icon="el-icon-search" v-model="form.keyWords" placeholder="关键字"></el-input>
        </el-form-item>
        <el-form-item>
            <el-button icon="el-icon-search" v-on:click="btnSearchClick">查 询</el-button>
        </el-form-item>
    </el-form>
</div>
<div class="px-5 pt-3">
    <div v-if="total>0">
        <div>
            <div class="d-flex align-items-center mb-2 pb-3 border border-start-0 border-end-0 border-top-0 card-hover-bg-title" v-for="(log,index) in list">
                <div class="position-relative">
                    <i class="bi bi-bug fs-2 text-warning"></i>
                    <span class="position-absolute top-50 start-100 translate-middle ms-2 mt-2 card-title">.{{ index+1 }}</span>
                </div>
                <div class="ps-8">
                    <div class="mb-3">
                        <span class="card-title">{{ log.tmTitle }}</span>
                    </div>
                    <ul class="list-inline fw-light m-0 d-flex align-items-center">
                        <li class="list-inline-item fs-5">
                            纠错时间：{{ utils.getFriendlyDate(log.createdDate) }}
                        </li>
                        <li class="list-inline-item">
                            <el-tag size="small" :type="utils.toLowerCase(log.auditStatus)">{{ log.auditStatusStr }}</el-tag>
                        </li>
                    </ul>
                </div>
                <div class="ms-auto">
                    <el-button class="rounded-pill px-4" icon="el-icon-view" v-on:click="btnTmViewClick(log.id)">查看</el-button>
                </div>
            </div>
        </div>
        <div class="my-5 text-center">
            <el-button class="border-0 rounded-pill" icon="el-icon-refresh-right" v-if="list.length>0 && list.length<total" v-on:click="btnLoadMoreClick" :loading="loadMoreLoading">加载更多</el-button>
            <small v-else>没有更多了</small>
        </div>
    </div>
    <div class="pt-10" v-else>
        <el-empty></el-empty>
    </div>
</div>
@section Scripts{
    <script src="/sitefiles/assets/js/home/exam/examTmCorrectionLog.js" type="text/javascript"></script>
}